package com.example.shimmer;

import com.szy.news.activity.MainActivity;
import com.szy.news.activity.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class TextActivity extends Activity implements OnClickListener {
	
	private Button btn_go;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_text);
		
		//进入新闻主界面MainActivity
		btn_go = (Button) findViewById(R.id.btn_go);
		btn_go.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		int id = v.getId();
		if(id == R.id.btn_go){
			Intent intent = new Intent(TextActivity.this,MainActivity.class);
			startActivity(intent);
			finish();
			
		}
	}
}
